package com.xxr.mom.ci.charging.interworking.huawei.accepter;

import com.xxr.mom.ci.charging.interworking.base.InterfaceAccepter;
import com.xxr.mom.ci.charging.interworking.dto.InterworkingConfigDto;
import com.xxr.mom.ci.charging.interworking.huawei.AbstractHuaWeiV1Service;
import com.xxr.mom.ci.charging.interworking.vo.api.AccessTokenRequest;
import com.xxr.mom.ci.charging.interworking.vo.api.AccessTokenResponse;
import com.xxr.mom.ci.common.dto.InterworkingParam;
import org.springframework.stereotype.Service;

/**
 * 华为V1.x 申请token
 *
 * @description: AbstractV2016Service
 * @date: 2024/8/26 00:15
 * @author: natsuki_kining
 * @version: 1.0
 */
@Service
public class QueryTokenHuaWeiV1AccepterService extends AbstractHuaWeiV1Service<AccessTokenRequest, AccessTokenResponse> implements InterfaceAccepter<AccessTokenRequest, AccessTokenResponse> {


    /**
     * 不校验token
     *
     * @param token             token
     * @param interworkingParam param
     * @param configDto         config
     */
    @Override
    public void validateToken(String token, InterworkingParam interworkingParam, InterworkingConfigDto configDto) {
    }

    @Override
    public AccessTokenResponse dataHandler(AccessTokenRequest accessTokenRequest, InterworkingConfigDto configDto) {
        return new AccessTokenResponse();
    }
}
